#ifndef _MYWIFI_H
#define _MYWIFI_H

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_log.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "esp_wifi.h"
#include "esp_event_loop.h"

#include "lwip/err.h"
#include "lwip/sys.h"

extern  EventGroupHandle_t s_wifi_event_group;
extern const int WIFI_CONNECTED_BIT;
extern  wifi_config_t wifi_config;
esp_err_t wifi_init_sta(void);
void wifi_update();
int get_wifi_status();

#endif
